// import XtxSkeleton from './xtx-skeleton.vue'
// import XtxCarousel from './xtx-carousel.vue'
// import XtxMore from './xtx-more.vue'

export default {
  install (app) {
    // app.component(XtxSkeleton.name, XtxSkeleton)
    // app.component(XtxCarousel.name, XtxCarousel)
    // app.component(XtxMore.name, XtxMore)
    const ctx = require.context('./', false, /\.vue$/)

    console.dir('ctx', ctx.keys())
    ctx.keys().forEach(element => {
      console.log('components', ctx(element))
      const components = ctx(element).default
      app.component(components.name, components)
    })
  }
}
